package com.hyj.shop.project.index.domain;

import com.hyj.shop.project.utils.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 文章管理对象 article
 *
 * @author heyuanjie
 * @date 2021-01-21
 */
public class Article extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** 标题 */
    private String title;

    /** 描述 */
    private String descripition;

    /** 内容 */
    private String content;

    /** 喜欢数量 */
    private String likeCount;

    /** 评论数量 */
    private Long remarkCount;

    /** 阅读数量 */
    private String readCount;

    /** 字数 */
    private String wordCount;

    /** 删除标志 */
    private String deleteFlag;

    /** 图片地址 */
    private String imgUrl;
//    发布人id
    private int userId;
    // 发布年月
    private String months;
    // 编辑器类型 0 text 1 marked
    private int editType;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setTitle(String title)
    {
        this.title = title;
    }

    public String getTitle()
    {
        return title;
    }
    public void setDescripition(String descripition)
    {
        this.descripition = descripition;
    }

    public String getDescripition()
    {
        return descripition;
    }
    public void setContent(String content)
    {
        this.content = content;
    }

    public String getContent()
    {
        return content;
    }
    public void setLike(String likeCount)
    {
        this.likeCount = likeCount;
    }

    public String getLikeCount()
    {
        return likeCount;
    }
    public void setRemarkCount(Long remarkCount)
    {
        this.remarkCount = remarkCount;
    }

    public Long getRemarkCount()
    {
        return remarkCount;
    }
    public void setReadCount(String readCount)
    {
        this.readCount = readCount;
    }

    public String getReadCount()
    {
        return readCount;
    }
    public void setWordCount(String wordCount)
    {
        this.wordCount = wordCount;
    }

    public String getWordCount()
    {
        return wordCount;
    }
    public void setDeleteFlag(String deleteFlag)
    {
        this.deleteFlag = deleteFlag;
    }

    public String getDeleteFlag()
    {
        return deleteFlag;
    }
    public void setImgUrl(String imgUrl)
    {
        this.imgUrl = imgUrl;
    }

    public String getImgUrl()
    {
        return imgUrl;
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public void setLikeCount(String likeCount) {
        this.likeCount = likeCount;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public String getMonths() {
        return months;
    }

    public void setMonths(String months) {
        this.months = months;
    }

    public int getEditType() {
        return editType;
    }

    public void setEditType(int editType) {
        this.editType = editType;
    }

    @Override
    public String toString() {
        return "Article{" +
                "id=" + id +
                ", title='" + title + '\'' +
                ", descripition='" + descripition + '\'' +
                ", content='" + content + '\'' +
                ", likeCount='" + likeCount + '\'' +
                ", remarkCount=" + remarkCount +
                ", readCount='" + readCount + '\'' +
                ", wordCount='" + wordCount + '\'' +
                ", deleteFlag='" + deleteFlag + '\'' +
                ", imgUrl='" + imgUrl + '\'' +
                ", userId=" + userId +
                ", months='" + months + '\'' +
                ", editType=" + editType +
                "} " + super.toString();
    }
}
